qui(
    function (require, exports, module) {
        Broadcast.Action = (function () {
            var configGrid = null;
            var broadcastChannel = null;
            var broadcastEpisode = null;

            function configRun(){
                if (!configGrid) {
                    configGrid = new Broadcast.Grid($.extend(true, {
                        type: 0
                    }, {}));
                }
                configGrid.runConfig();
                console.log('config grid run');
            }

            function broadcastChannelRun(){
                if (!broadcastChannel) {
                    broadcastChannel = new Broadcast.Edit($.extend(true, {
                        model:"channel",
                        type: 0
                    }, {}));
                }
                broadcastChannel.channelRun();
                console.log('broadcastChannel run');
            }
            function broadcastEpisodeRun(){
                if (!broadcastEpisode) {
                    broadcastEpisode = new Broadcast.Edit($.extend(true, {
                        model:"episode",
                        type: 0
                    }, {}));
                }
                broadcastEpisode.episodeRun();
                console.log('broadcastEpisode run');
            }

            return {
                configRun:configRun,
                broadcastChannelRun:broadcastChannelRun,
                broadcastEpisodeRun:broadcastEpisodeRun
            }
        })();
    }
);